package cn.doitedu.rtdw.udfs;

import ch.hsr.geohash.GeoHash;
import org.apache.flink.table.functions.ScalarFunction;

public class GpsToGeohashUdf extends ScalarFunction {

    public String eval(Double lat ,Double lng){
        return GeoHash.geoHashStringWithCharacterPrecision(lat,lng,6);
    }

}
